<?php

namespace App\Common\Enums;

class Code
{
    const OK = 0;
    const NO_DATA = 10002;
    const MISS = 10404;
    const UNKNOWN = 19999;
    const PHP_ERROR = 19000;
    const SYSTEM_ERROR = 10888;
    const CONFIG_ERROR = 10866;
    const EXE_SHELL_ERROR = 10777;
    const REQUEST_ERROR = 11000;
    const JSON_PARSE_ERROR = 11001;
    const MOBILE_OCCUPIED = 11002;
    const EMAIL_OCCUPIED = 11003;

    // 用户请求问题
    const LOGIN_FAILED_ADMIN = 40000; // 管理员登录失败
    const LOGIN_FAILED_USER = 40001; // 用户登录失败

    const JWT_TOKEN_MISS = 40100;
    const JWT_TOKEN_INVALID = 40101;
    const JWT_TOKEN_EXPIRED = 40102;

    // 系统异常
    const DB_EXCEPTION = 50000; // 数据库异常

    // 依赖第三方的出现问题时的错误码
    const ROBOT_SEND_MSG_FAIL = 60000;
}
